<?php
    require("./Utils.php");

    $id = $_GET['id'];

    $sql = "SELECT id,image,type FROM pet_type WHERE id = ?";
    $conn = getConnection();

    $data = query($conn, $sql, $id);

    echo getJson(200, "获取成功", $data);

?>